# -*- coding: utf-8 -*-
# @Time     : 2020/8/1 17:12

import asyncio


# 定义协程函数
async def func():
    print("python")
    return "PYTHON3"


if __name__ == '__main__':
    # 创建事件循环对象
    loop = asyncio.get_event_loop()
    # 开启事件循环(启动协程func)
    loop.run_until_complete(func())
